package com.itxiaox.xview.demo.java.view;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;


public class ViewActivity extends AppCompatActivity {

    com.itxiaox.xview.demo.databinding.ActivityViewBinding viewBinding;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
//        viewBinding = com.itxiaox.xview.databinding.ActivityViewBinding.inflate(getLayoutInflater());
//        setContentView(viewBinding.getRoot());
//        viewBinding.bvBattery.setPower(60);
//        setImage();
//        setWebView();
    }

//    private void setWebView(){
//        viewBinding.ldWebView.setWebViewClient(new WebViewClient());
//        viewBinding.ldWebView.loadUrl("https://www.baidu.com");
//    }
//
//    public void switchButton(View view) {
//        startActivity(new Intent(ViewActivity.this,MyToggleButtonActivity.class));
//    }
//
//    public void setImage(){
//        viewBinding.textImg.setImageResource(R.drawable.ic_banner);
//        viewBinding.textImg.setTextColor(Color.RED);
//        viewBinding.textImg.setTextView("首页");
//    }
}